package xyz.whiteblue.controller;

import xyz.whiteblue.core.ActionType;
import xyz.whiteblue.interceptor.Interceptor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by WhiteBlue on 15/6/14.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Mapping {
    String name();

    ActionType[] method() default ActionType.GET;

    Class<? extends Interceptor>[] before();
}


